package po.userpo;

import java.io.Serializable;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import Enum.*;

public class UserPO implements Serializable {

	UserID userID;
	Birthday birthday;
	String username;
	String password;
	int age;
	UserRole role;
	Gender gender;
	Faculty faculty;
	Hometown hometown;
	String registerTime;

	public UserPO(UserID id, String name, String p, int Age, UserRole Role,
			Gender g, Faculty f, Hometown h, Birthday birth, String registerTime) {
		// TODO Auto-generated constructor stub
		userID = id;
		username = name;
		password = p;
		age = Age;
		role = Role;
		gender = g;
		faculty = f;
		hometown = h;
		birthday = birth;
		this.registerTime = registerTime;

	}

	public UserPO() {
		// TODO Auto-generated constructor stub
	}

	public UserID getUserID() {
		return userID;
	}

	public Birthday getBirthday() {
		return birthday;
	}

	public String getusername() {
		return username;
	}

	public UserRole getUserRole() {
		return role;
	}

	public Faculty getFaculty() {
		return faculty;
	}

	public Gender getGender() {
		return gender;
	}

	public int getAge() {
		return age;
	}

	public String getPassword() {
		return password;
	}

	public Hometown getHometown() {
		return hometown;
	}

	public String getRegisterTime() {
		return registerTime;
	}
}
